package top.ljjapp.security.core.validate.code.image;

import lombok.Data;
import top.ljjapp.security.core.validate.code.ValidateCode;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;


@Data
public class ImageCode extends ValidateCode {

    /**
     * 图片
     */
    private BufferedImage image;


    public ImageCode(BufferedImage image, String code, int expireTime) {
        super(code, expireTime);
        this.image = image;
    }

    public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
        super(code, expireTime);
        this.image = image;
    }

}
